import React from 'react';
import {render} from 'react-dom';
import {hashHistory, Router, Route, IndexRedirect, Redirect,useRouterHistory} from 'react-router';


import { createHashHistory } from 'history';


import {App} from './scripts/App.react';
import HomeSection from './modules/home/Home.react';
// TODO remove
const appHashHistory = useRouterHistory(createHashHistory)({ queryKey: false });

render(
    //<Provider store={store}>
        <div>
            <Router history={appHashHistory}>
                <Route path="/" component={App}>
                    <IndexRedirect to="/home" />
                    <Route path="home" component={HomeSection} />
                </Route>
                {/* user module*/}
            </Router>
            { /*<DevTools />*/}
        </div>,
    //</Provider>,
    document.getElementById("container")
);  